#ifndef __usart_H
#define __usart_H

#include <stdint.h>

#define  WIRELESS  1
#define 	BLE              2


#define CHART35_TIMEOUT_BUF_NUM    8
#define BLE_CHART35_TIMEOUT_BUF_NUM    8

void usart_init(void);

void wireless_buf_clear(void);
void  wireless_usart_tx_data(uint8_t  *data_buf,  uint16_t length);
uint8_t*  get_wireless_rx_data_buf(void);
uint8_t  get_wireless_rx_count(void);
uint8_t  get_wireless_r_n(void);

void ble_buf_clear(void);
void  ble_usart_tx_data(uint8_t  *data_buf,  uint16_t length);
uint8_t*  get_ble_rx_data_buf(void);
uint8_t  get_ble_rx_count(void);
uint8_t  get_ble_r_n(void);

void usart_off(void);
void wirelees_usart_baudrate(uint16_t value);
#endif
